const BASE_URL = 'http://www.lgsm.com.cn/f_toset_fkys'
export const myRequest = (options)=>{	
	return new Promise((resolve, reject)=>{		
		uni.request({
			url:BASE_URL + options.url,
			method:options.method ||'GET',
			data:options.data ||{},
			success:(res)=>{				
				resolve(res)
			},
			fail:(err)=>{
				alert(JSON.stringify(err))
				uni.showToast({
					title:'请求数据失败'
				})
				reject(err)
			}
		})
	})
}